package framework.mvc.header;

import framework.account.IAccount;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: asus
 * Date: 12/18/12
 * Time: 8:28 PM
 * To change this template use File | Settings | File Templates.
 */
public class AccountTableValue implements ITableValue<IAccount> {
    @Override
    public void setHeader(IAccount account, Map<String, String> header) {
        header.put("type", account.getType());
        header.put("ccNumber", account.getAccountNo());
        header.put("amount", String.valueOf(account.getBalance()));
    }
}
